#include "ChicagoStylePizzaStore.h"
#include "ChicagoStyleCheesePizza.h"
#include "ChicagoStyleGreekPizza.h"
#include "ChicagoStylePepperoniPizza.h"

#include <assert.h>

Pizza * ChicagoStylePizzaStore::createPizza(std::string type){
    Pizza *pizza;
    if (type == "Cheese") pizza = new ChicagoStyleCheesePizza();
    else if (type == "Greek") pizza = new ChicagoStyleGreekPizza();
    else if (type == "Pepperoni") pizza = new ChicagoStylePepperoniPizza();
    else {
        std::cout << "Invalid type!" << std::endl;
        assert(false);
    }

    return pizza;
}